package com.hlt.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@ApiModel(description = "敏感词检测数据传输对象")
public class SensitiveWordCheckDTO {

    @NotBlank(message = "文本内容不能为空")
    @ApiModelProperty("待检测的文本内容")
    private String content;

    @ApiModelProperty("检测到的敏感词列表")
    private List<String> sensitiveWords;

    @ApiModelProperty("是否包含敏感词")
    private Boolean containsSensitiveWord;
}